package us.oh.k12.wkw.robot.command;

public class LauncherAngleWithJoystickCmd extends CommandBase {

	public LauncherAngleWithJoystickCmd() {
		super();
		this.requires(this.getLaunchFrisbeeSystem());
	}

	// Called repeatedly when this Command is scheduled to run
	protected void execute() {

		try {

			this.getLaunchFrisbeeSystem().angleWithJoystick(this.getOI().getLauncherJoystick());

		} catch (Exception anEx) {
			this.error("execute()", anEx);
		}
	}

	// drive with joystick never ends
	protected boolean isFinished() {
		return false;
	}

}
